package com.eastdigit.system.inter;

import com.eastdigit.system.model.DataScope;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DataScopeMapper {

    int insertBatch(List<DataScope> list);

    int deleteAll();

    List<DataScope> selectDataScopeByUserAndMenuId(@Param("userId") String userId, @Param("menuId") String menuId);

    List<DataScope> selectDataScopeByUserAndMenuIds(@Param("userId") String userId, @Param("menuIds") List<String> menuIds);
}
